/* Author: CLR */

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintStream;
import java.io.IOException;


public class CoachList extends ObjectList {

	public CoachList() {
	
	}

	public DataObject loadObjectFromFile(String dataObject_String)throws FileNotFoundException {
		ArrayList<String> coachData = new ArrayList<String>();
		Scanner coachReader = new Scanner(dataObject_String);
		coachReader.useDelimiter(";");
		
		while(coachReader.hasNext()){
			coachData.add(coachReader.next());
		}
		
		Coach coach = new Coach(coachData.get(0), coachData.get(1), coachData.get(2));
		return coach;
	}

	
	
} // end class.